{	V Open School Programming Olympiad
	Problem C
	Points: 88
}

var n,a,b,i,remain,bus,taxi:longint;
begin
assign(input,'trans.in');
assign(output,'trans.out');
reset(input);
rewrite(output);
readln(n,a,b);
remain:=n;
bus:=0;
taxi:=0;
while remain>=50 do begin
  if a>b*13 then begin
    inc(taxi,13);
    dec(remain,52);
  end else
  if a>b*12 then begin
    inc(taxi,12);
    dec(remain,48);
  end else begin
    inc(bus);
    dec(remain,50);
  end;
end;
if remain>0 then
  if a>((remain-1) div 4 +1)*b then inc(taxi,((remain-1) div 4 +1)) else inc(bus);
writeln(bus,' ',taxi);
close(input);
close(output);
end.

